package org.example.controller;

import jakarta.annotation.Resource;
import org.example.entity.R;
import org.example.servcie.EmpFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TonySong
 * @date 2024/4/26 0026
 * @time 11:54
 */
@RestController
@RequestMapping("/feignEmp")
public class EmpFeignController {
    @Resource
    private EmpFeignService empFeignService;

    @GetMapping("/emps")
    public R emps() {
        return empFeignService.getEmp();
    }


}
